package me.qingy.core.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import me.qingy.core.entity.UserOnline;
import me.qingy.core.mapper.UserOnlineMapper;
import me.qingy.core.service.UserOnlineService;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 在线用户记录 服务实现类
 * </p>
 *
 * @author qingy
 * @since 2021-04-28
 */
@Service
public class UserOnlineServiceImpl extends ServiceImpl<UserOnlineMapper, UserOnline> implements UserOnlineService {

    @Override
    public List<UserOnline> selectOnlineByExpired(Date expiredDate) {
        return this.baseMapper.selectOnlineByExpired(expiredDate);
    }

    @Override
    public void batchDeleteOnline(List<String> needOfflineIdList) {
        this.baseMapper.deleteBatchIds(needOfflineIdList);
    }

    @Override
    public void removeUserCache(String loginName, String sessionId) {
    }
}
